package com.zhxq.ai.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhxq.ai.domain.vo.MessageVo;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Document("chat_message")
@Data
public class ChatMessage {

    // 主键ID
    private String id;

    // 会话ID
    private String chatId;

    // 消息列表
    private List<MessageVo> messageList;

    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
